<?php
/**
 * $Id: user_model.php 16 2011-08-14 08:44:41Z zyb0807@gmail.com $
 */
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class User_model extends CI_Model
{
	public function __construct()
	{

	}

	/**
	 * 通过用户编号获取用户信息
	 *
	 * @param $uid	string
	 * @return array 
	 */
	public function get_member_by_uid($uid)
	{
		$query =  $this->db->get_where('members', array('uid' => $uid));
		$userinfo = $query->result();
		$userinfo = !empty($userinfo) ? $userinfo[0] : '';
		return $userinfo;		
	}
}

/* End of file user_model.php */
/* Location: ./api/app/models/user_model.php */

